+2008-05-14 Sven Neumann <sven@gimp.org>
+
+ * babl/babl-format.c (format_new): initialize format.visited.
+
+ * babl/babl-format.h
+ * babl/babl-fish-path.c: formatting.
+
2008-04-16 Sven Neumann <sven@gimp.org>
* babl/babl.h: formatting.
* let's copy it into our new fish */
fish_path->fish_path.cost = path_cost;
fish_path->fish.error = path_error;
- babl_list_copy (current_path, fish_path->fish_path.conversion_list);
+ babl_list_copy (current_path,
+ fish_path->fish_path.conversion_list);
}
}
}
/* Mark the current format in conversion path as visited */
current_format->format.visited = 1;
- /* Iterate through unvisited formats from the current format ...*/
+ /* Iterate through unvisited formats from the current format ...*/
for (i = 0; i < babl_list_size (list); i++)
{
Babl *next_conversion = BABL (list->items[i]);
// FishPath instrumentation
-static Babl *fmt_rgba_double = NULL;
+static Babl *fmt_rgba_double = NULL;
static double *test = NULL;
static void *source;
static void *destination;
static Babl *fish_rgba_to_source;
static Babl *fish_reference;
static Babl *fish_destination_to_rgba;
-static double reference_cost;
-static int init_instrumentation_done = 0;
+static double reference_cost;
+static int init_instrumentation_done = 0;
static void
init_path_instrumentation (Babl *fmt_source,
*/
#ifndef _BABL_H
-#error this file is only to be included by babl.h
+#error this file is only to be included by babl.h
#endif
/****************************************************************/
*/
Babl *babl_format_id (int id);
void babl_format_each (BablEachFunction each_fun,
- void *user_data);
+ void *user_data);
Babl * babl_format (const char *name);
Babl * babl_format_new (void *first_arg,
- ...) BABL_ARG_NULL_TERMINATED;
+ ...) BABL_ARG_NULL_TERMINATED;
typedef struct
{
int components;
BablComponent **component;
BablType **type;
- void *image_template; /* image template for use with
- linear (non-planer) images */
+ void *image_template; /* image template for use with
+ linear (non-planer) images */
BablSampling **sampling;
BablModel *model;
int planar;
double loss; /*< average relative error when converting
from and to RGBA double */
- int visited; /* for convenience in code while searching
+ int visited; /* for convenience in code while searching
for conversion paths */
} BablFormat;